<template>
	<van-swipe :autoplay="3000" indicator-color="white">
		<van-swipe-item v-for="item in data.list" :key="item.id">
			<img :src="item.src || item" :height="(data.h || 300)-100" width="100%" alt="1" />
		</van-swipe-item>
	</van-swipe>
</template>

<script>
export default {
	name: 'swipebox',
	props: {
		data: {
			type: Object,
			default: () => {
				return {
					list: [],
					w: '',
					h: ''
				}
			}
		}
	},
	mounted() {
		// console.log(this.data)
	}
}
</script>

<style></style>
